import { ethers } from 'ethers';
import contractInfo from '../contracts/Voting.json';

const contractAddress = contractInfo.address;
const contractABI = contractInfo.abi;

export function getContract(signerOrProvider) {
  return new ethers.Contract(contractAddress, contractABI, signerOrProvider);
}
